#ifndef XL_LANGUAGE_H
#define XL_LANGUAGE_H
#pragma once
#include <string>
#include <map>
#include <tchar.h>
#include "../libuploader/libxluploader.h"

class CLanguage
{
private:
	CLanguage(void);
	~CLanguage(void);

	static CLanguage *m_instance;

	tstring                                m_iniFile;

	typedef std::map<tstring, tstring>     Cache;
	Cache                                  m_cache;


public:
	static CLanguage* getInstance();

	bool loadLanguage(const std::string &lang);

	// CString getString(const std::string &key);
	tstring getString(const tstring& key);
};

#endif
